package com.cinco.server.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试
 * @author cinco
 * @version 1.0
 * @date 2022/1/12
 */
@RestController
@Api(tags = "HelloController")
public class HelloController {
    @ApiModelProperty(value = "测试控制器")
    @PostMapping("/hello")
    public String test(){
        return "hello,world!";
    }

    @GetMapping("/employee/basic/hello")
    public String hello2(){
        return "/employee/basic/hello";
    }

    @GetMapping("/employee/advanced/hello")
    public String hello3(){
        return "/employee/advanced/hello";
    }
}
